<template>
	  <view @click="detail(item)"  :id="`zp-id-${item.zp_index}`" :key="item.zp_index" v-for="(item,index) in virtualList" class="order-card">
	  	<view class="no-box">
			<view class="order-no">
				<u-icon name="order"></u-icon>
				<text class="number">123213123123</text>
			</view>
			<view class="status">待服务</view>
		</view>
		
		<view class="main-box">
			<u-avatar size="100" src="http://cos.duopei.feiniaowangluo.com/34/clerk/1720278125689P34fP9MU1c.jpg?imageView2/1/w/200/h/200"></u-avatar>
			<view class="right-box">
				<view class="nickname-box">
					<view class="nickname">碎冰冰</view>
					<view class="info">订单时间：2024-08-10</view>
					<view class="info">服务内容：文字×1</view>
					<view class="info">
						<text class="weixin">微信：rbtnet</text>
						<u-icon name="outline-copy" custom-prefix="iconfont"></u-icon>
					</view>
					<view class="info">剩余时间：已结束</view>
					<view class="info">取消原因：</view>
				</view>
				<view class="price-box">
					<text class="price">5.00</text>
					<text>/币</text>
				</view>
			</view>
		</view>
		
		<view class="bottom-box">
			<view class="btn-box">
				<view class="btn active">结束服务</view>
				<view class="btn">取消接单</view>
			</view>
		</view>
		
	  </view>
  
</template>

<script>
	export default {
		components: {
			
		},
		props: {
			virtualList: {
				type: Array,
				default: [],
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.order-card {
		padding: 10px;
		margin-top: 10px;
		background-color: #fff;
		display: flex;
		flex-direction: column;
		flex: 1;
		
		.no-box {
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex: 1;
			padding-bottom: 10px;
			color: rgb(100, 101, 102);
			
			.order-no {
				
				.number {
					margin-left: 5px;
					font-size: 22rpx;
				}
			}
			
			.status {
				font-size: 22rpx;
			}
		}
		
		.main-box {
			display: flex;
			padding: 10px 0;
			border-top: 1px solid #fbf0f0;
			border-bottom: 1px solid #fbf0f0;
			margin-bottom: 10px;
			
			.right-box {
				display: flex;
				justify-content: space-between;
				flex: 1;
				align-items: center;
				margin-left: 10px;
				
				.nickname {
					font-size: 12px;
					font-weight: bold;
					margin-bottom: 10px;
				}
				
				.info {
					font-size: 22rpx;
					color: rgb(100, 101, 102);
					line-height: 22rpx;
					margin-bottom: 5px;
					
					.weixin {
						margin-right: 5px;
					}
				}
				
				.price-box {
					font-size: 22rpx;
					color: rgb(100, 101, 102);
					
					.price {
						font-size: 34rpx;
						font-weight: bold;
						color: var(--ui-BG-Main);
					}
				}
			}
		}
		
		.bottom-box {
			display: flex;
			justify-content: flex-end;
			
			.btn-box {
				display: flex;
				align-items: center;
			}
			
			.btn {
				background-color: #ddd;
				color: rgb(100, 101, 102);
				font-size: 22rpx;
				border-radius: 40px;
				padding: 5px 10px;
				margin-left: 10px;
			}
			
			.active {
				background-color: var(--ui-BG-Main);
				color: #fff;
			}
		}
	}
</style>